#include <stdio.h>

int main()
{

	int i = 1;

	while(i == 1) {
		char c = getchar();

		switch(c) {
			case 'w':
				printf("up\n");
				break;
			case 'a':
				printf("left\n");
				break;
			case 'd':
				printf("right\n");
				break;
			case 's':
				printf("down\n");
				break;
			case 'p':
				i++;
				break;
			default:
				break;
		}
	}
	
	return 0;
}
